﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Developer.Core.FrameWork.RedisExtensions.RedisSubscribeInit.InitMq
{
    public class InitMqOption
    {
        /// <summary>
        /// redis连接字符串
        /// </summary>
        public string ConnectionString { get; set; }

        /// <summary>
        /// 暂停时间
        /// </summary>
        public int SuspendTime { get; set; }

        /// <summary>
        /// 间隔时间
        /// </summary>
        public int IntervalTime { get; set; }

        /// <summary>
        /// 是否展示日志
        /// </summary>
        public bool ShowLog { get; set; }

        /// <summary>
        /// 订阅事件集合
        /// </summary>
        public IList<Type> ListSubscribe { get; set; }

        public InitMqOption()
        {
            this.ConnectionString = "";
            this.IntervalTime = 0;
            this.SuspendTime = 1000;
            this.ShowLog = false;
        }
    }
}
